package com.manage.service.impl;

import com.manage.mapper.single.OrderMapper;
import com.manage.model.dto.OrderDTO;
import com.manage.service.OrderService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
/**
 * 订单信息实现类
 * @author duaiyu
 * @version V1.0
 * @date 2022/5/27
 * 来源：自研
 */
@Service
public class OrderServiceImpl implements OrderService {
    @Resource
    OrderMapper orderMapper;

    @Override
    public List<OrderDTO> queryOrder() {
        List<OrderDTO> list = orderMapper.queryOrder();
        return list;
    }

    @Override
    public Integer addOrder(OrderDTO order) {
        Integer result = orderMapper.addOrder(order);
        return result;
    }
}
